package com.newtouch.controller;

import com.newtouch.rabbbitmq.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/8/30.
 */

@RestController
@RequestMapping("/rabbit")
public class TestController {

    @Autowired
    private Sender sender;

    @PostMapping("/hello")
    public void hello() {

        sender.send();
    }
}
